<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="(item, index) in bannerList" :key="index">
        <Img :src="item.img" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
import Img from './Img.vue'
export default {
  props: {
    bannerList: {
      type: Array,
      default: () => [],
    },
  },
  components: {
      Img
  },
};
</script>

<style>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  height: 160px;
  text-align: center;
  background-color: #39a9ed;
}
</style>